package com.gite.nouette.admin.implementation.integrator.builder.command;

import com.gite.nouette.admin.contract.integrator.factory.IFactoryModel;
import com.gite.nouette.admin.contract.model.command.ICommandCreateModule;
import com.gite.nouette.admin.implementation.integrator.builder.AbstractBuilderCommand;

public abstract class AbstractBuilderCommandCreateModule extends
		AbstractBuilderCommand {

	private ICommandCreateModule product;

	public AbstractBuilderCommandCreateModule(IFactoryModel factoryModel) {
		super(factoryModel);
	}

	@Override
	public ICommandCreateModule getProduct() {
		return this.product;
	}

	public void setProduct(ICommandCreateModule product) {
		this.product = product;
	}

	@Override
	public void createNewProduct() {
		setProduct(getFactoryModel().getCommandCreateModule());
	}

}
